package com.zzxy.spring2.controller;

import com.zzxy.spring2.service.ITeacherService;

@Controller
public class TeacherController {

    @Autowired
    private ITeacherService teacherService;

    public TeacherController(ITeacherService teacherService) {
        this.teacherService = teacherService;
    }

   /* public ITeacherService getTeacherService() {
        return teacherService;
    }

    public void setTeacherService(ITeacherService teacherService) {
        this.teacherService = teacherService;
    }*/

    public void register() {
        // service
        teacherService.registerTeacher();

    }

}
